package com.link.base.base.contract.service;

import com.link.base.base.contract.dao.mybatis.mapper.ReturnInfoMapper;
import com.link.base.base.contract.model.ReturnInfo;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 回款信息
 *
 * @author 阳晓琳
 * @date 2020-10-16 17:31:33
 */
@Service
public class ReturnInfoServiceImpl extends BasicServiceImpl<ReturnInfo> implements ReturnInfoService {

    @Resource
    private ReturnInfoMapper    returnInfoMapper;

    @Override
    public BasicMapper<ReturnInfo> getBasicMapper() {
        return returnInfoMapper;
    }

    /**
     * erpID查询回款信息
     * @param returnInfo
     * @return
     * @throws Exception
     */
    @Override
    public ReturnInfo queryOneByErpId(ReturnInfo returnInfo) throws Exception {
        return returnInfoMapper.queryOneByErpId(returnInfo);
    }
}